package sourceCode;

import java.awt.geom.Point2D;

public class ZoneGarage extends ConteneurChariots {

    public ZoneGarage(int _id, Point2D.Double _point) {
        super(_id, _point);
    }

    public Chariot prendreChariot() {
        if (!this.listChariots.isEmpty()) {
            Chariot c = this.listChariots.get(0);
            this.listChariots.remove(c);
            return c;
        }
        return null;
    }
}
